<h2>Pilih Role untuk <?php echo $nama?></h2>
<form action="<?php echo base_url().'admin/user_con/input_role'?>" method="post">
    <input type="hidden" value="<?php echo $id?>" name="id">
    <?php for($i=0;$i<count($cekbok);$i++){?>
    <input type="checkbox" name="role[]" value="<?php echo $cekbok[$i]['id']?>" /><?php echo $cekbok[$i]['nama']?>
    <br/>
    <?php }?>
    <br/>
    <input type="submit" value="Submit"/>
</form>